package com.cn.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.pojo.Order;

import com.cn.pojo.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper

public interface OrdersMapper  {
    Order selectOrderNo(@Param("id") String id);
    List<Order> selectAll(@Param("order") Order order);
    void updateById2(@Param("order") Order order);
   void createOrder(@Param("order") Order order);
   void createOrderItem(@Param("orderItem") OrderItem orderItem);

   void updatePayStatus(@Param("orderNo") String orderNo);
    int payStatus(@Param("orderNo") String orderNo);

   void deleOrder(@Param("orderNo") String orderNo);

    int findOrderMoney(@Param("orderNo") String orderNo);
    List<Order> searchOrderDetail(@Param("id") int id);

    void close(@Param("orderId") int orderId);
    void checkOut(@Param("orderId") int orderId);
    void checkDone(@Param("orderId") int orderId);

    int orderStatus(@Param("orderId") int orderId);

}
